<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - fileutils: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - fileutils: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="module">
                <a href="FileUtils.html">FileUtils</a>

                <ul>
                    <li><a href="FileUtils.html#label-What-27s+Here">What’s Here</a>
                    <li><a href="FileUtils.html#label-Creating">Creating</a>
                    <li><a href="FileUtils.html#label-Deleting">Deleting</a>
                    <li><a href="FileUtils.html#label-Querying">Querying</a>
                    <li><a href="FileUtils.html#label-Setting">Setting</a>
                    <li><a href="FileUtils.html#label-Comparing">Comparing</a>
                    <li><a href="FileUtils.html#label-Copying">Copying</a>
                    <li><a href="FileUtils.html#label-Moving">Moving</a>
                    <li><a href="FileUtils.html#label-Options">Options</a>
                    <li><a href="FileUtils.html#label-Path+Arguments">Path Arguments</a>
                    <li><a href="FileUtils.html#label-About+the+Examples">About the Examples</a>
                    <li><a href="FileUtils.html#label-Avoiding+the+TOCTTOU+Vulnerability">Avoiding the TOCTTOU Vulnerability</a>
                    </ul>
                  </li>
              <li class="module">
                <a href="FileUtils/DryRun.html">FileUtils::DryRun</a>
                  </li>
              <li class="module">
                <a href="FileUtils/NoWrite.html">FileUtils::NoWrite</a>
                  </li>
              <li class="module">
                <a href="FileUtils/StreamUtils_.html">FileUtils::StreamUtils_</a>
                  </li>
              <li class="module">
                <a href="FileUtils/Verbose.html">FileUtils::Verbose</a>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="FileUtils.html#method-c-cd">::cd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-chdir">::chdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-chmod">::chmod</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-chmod_R">::chmod_R</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-chown">::chown</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-chown_R">::chown_R</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-cmp">::cmp</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-collect_method">::collect_method</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-commands">::commands</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-compare_file">::compare_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-compare_stream">::compare_stream</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-copy">::copy</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-copy_entry">::copy_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-copy_file">::copy_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-copy_stream">::copy_stream</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-cp">::cp</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-cp_lr">::cp_lr</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-cp_r">::cp_r</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-getwd">::getwd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-have_option-3F">::have_option?</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-identical-3F">::identical?</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-install">::install</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-link">::link</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-link_entry">::link_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-ln">::ln</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-ln_s">::ln_s</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-ln_sf">::ln_sf</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-ln_sr">::ln_sr</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-makedirs">::makedirs</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-mkdir">::mkdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-mkdir_p">::mkdir_p</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-mkpath">::mkpath</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-move">::move</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-mv">::mv</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-options">::options</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-options_of">::options_of</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-pwd">::pwd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-remove">::remove</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-remove_dir">::remove_dir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-remove_entry">::remove_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-remove_entry_secure">::remove_entry_secure</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-remove_file">::remove_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rm">::rm</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rm_f">::rm_f</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rm_r">::rm_r</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rm_rf">::rm_rf</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rmdir">::rmdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-rmtree">::rmtree</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-safe_unlink">::safe_unlink</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-symlink">::symlink</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-touch">::touch</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-c-uptodate-3F">::uptodate?</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-cd">#cd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-chdir">#chdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-chmod">#chmod</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-chmod_R">#chmod_R</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-chown">#chown</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-chown_R">#chown_R</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-cmp">#cmp</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-compare_file">#compare_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-compare_stream">#compare_stream</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-copy">#copy</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-copy_entry">#copy_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-copy_file">#copy_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-copy_stream">#copy_stream</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-cp">#cp</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-cp_lr">#cp_lr</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-cp_r">#cp_r</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils/StreamUtils_.html#method-i-fu_blksize">#fu_blksize</a>
                      &mdash;
                      <span class="container">FileUtils::StreamUtils_</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-fu_clean_components">#fu_clean_components</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils/StreamUtils_.html#method-i-fu_default_blksize">#fu_default_blksize</a>
                      &mdash;
                      <span class="container">FileUtils::StreamUtils_</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-fu_split_path">#fu_split_path</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-fu_starting_path-3F">#fu_starting_path?</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils/StreamUtils_.html#method-i-fu_stream_blksize">#fu_stream_blksize</a>
                      &mdash;
                      <span class="container">FileUtils::StreamUtils_</span>

                    <li class="method">
                      <a href="FileUtils/StreamUtils_.html#method-i-fu_windows-3F">#fu_windows?</a>
                      &mdash;
                      <span class="container">FileUtils::StreamUtils_</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-getwd">#getwd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-identical-3F">#identical?</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-install">#install</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-link">#link</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-link_entry">#link_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-ln">#ln</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-ln_s">#ln_s</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-ln_sf">#ln_sf</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-ln_sr">#ln_sr</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-makedirs">#makedirs</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-mkdir">#mkdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-mkdir_p">#mkdir_p</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-mkpath">#mkpath</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-move">#move</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-mv">#mv</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-pwd">#pwd</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-remove">#remove</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-remove_dir">#remove_dir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-remove_entry">#remove_entry</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-remove_entry_secure">#remove_entry_secure</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-remove_file">#remove_file</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rm">#rm</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rm_f">#rm_f</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rm_r">#rm_r</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rm_rf">#rm_rf</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rmdir">#rmdir</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-rmtree">#rmtree</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-safe_unlink">#safe_unlink</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-symlink">#symlink</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-touch">#touch</a>
                      &mdash;
                      <span class="container">FileUtils</span>

                    <li class="method">
                      <a href="FileUtils.html#method-i-uptodate-3F">#uptodate?</a>
                      &mdash;
                      <span class="container">FileUtils</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

